﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wctlGrupotrabajo.ascx.cs" Inherits="Controls_wctlGrupotrabajo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>


<script type="text/javascript">
function OnRowClick(e){
_aspxClearSelection();
GridSolicitud._selectAllRowsOnPage(false);
GridSolicitud.SelectRow(e.visibleIndex,true);
}
</script>
<fieldset style="font-size: 8pt; margin-left: 10px; width: 98%">
    <div>
        <legend style="font-size: 11pt">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/LogoPwC.jpg" /></legend>
        <br />
        &nbsp;
        <asp:Label ID="Label16" runat="server" CssClass="textMaroon" Font-Bold="False" Font-Size="Large"
            Text="Datos del Grupo de Trabajo"></asp:Label><br />
        <table class="textMaroon" style="font-weight: bold; margin-left: 8px; width: 637px">
            <tr>
                <td colspan="2" style="height: 21px">
                </td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label2" runat="server" Font-Bold="False" Text="Código Proyecto:" Width="108px"></asp:Label></td>
                <td style="width: 100px; height: 21px">
                    <anthem:textbox id="Textbox2" runat="server" borderstyle="Solid" cssclass="textBoxMaroon"
                        maxlength="10" width="74px" Enabled="False">0</anthem:textbox>
                </td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label17" runat="server" Font-Bold="False" Text="Descripción:"></asp:Label></td>
                <td style="width: 100px; height: 21px">
                    <anthem:TextBox ID="Textbox4" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        Enabled="False" Width="350px"></anthem:TextBox></td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label4" runat="server" Font-Bold="False" Text="LoS"></asp:Label></td>
                <td style="width: 100px; height: 21px">
                    <anthem:TextBox ID="Textbox5" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        Enabled="False"></anthem:TextBox></td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label5" runat="server" Font-Bold="False" Text="Sub LoS"></asp:Label></td>
                <td style="width: 100px; height: 21px">
                    <anthem:TextBox ID="Textbox6" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        Enabled="False"></anthem:TextBox></td>
                <td style="width: 100px; height: 21px">
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <table>
                        <tr>
                            <td style="width: 80px">
                                <asp:Button ID="btnAgregar" runat="server" CssClass="button2" 
                                    Text="Agregar" Width="80px" /></td>
                            <td style="width: 80px">
                                <asp:Button ID="Button2" runat="server" CssClass="button2" Text="Reemplazar" Width="109px" OnClick="Button2_Click" /></td>
                            <td style="width: 80px">
                                <asp:Button ID="btnRetirar" runat="server" CssClass="button2" OnClick="btnCargarMyclient_Click"
                                    Text="Retirar" Width="80px" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="3">
                    <dx:ASPxGridView ID="GridSolicitud" runat="server" AutoGenerateColumns="False" Caption="Integrantes del Grupo de Trabajo"
                        ClientInstanceName="GridSolicitud" Font-Bold="False" KeyFieldName="ID"
                        Width="573px" DataSourceID="SqlDataSource1">
                        <Styles>
                            <Header CssClass="tableHeader" Font-Bold="True" ForeColor="White">
                            </Header>
                            <AlternatingRow Enabled="True">
                            </AlternatingRow>
                            <PagerBottomPanel BackColor="#D7C8C7" ForeColor="White">
                            </PagerBottomPanel>
                        </Styles>
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="ID" FieldName="ID" Visible="False" VisibleIndex="0">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Nombres" VisibleIndex="0" FieldName="NOMBRES">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Apellidos" VisibleIndex="1" FieldName="APELLIDOS">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Categor&#237;a" VisibleIndex="2" FieldName="CATEGORIA">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Los" VisibleIndex="3" FieldName="LOS">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Sub Los" VisibleIndex="4" FieldName="SUBLOS">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
                    </dx:ASPxGridView>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <asp:Label ID="lblmensaje" runat="server" Font-Size="Small" ForeColor="#C00000"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="2">
                    <table>
                        <tr>
                            <td style="width: 100px">
                                <asp:Button ID="Button1" runat="server" CssClass="button2" OnClick="Button1_Click"
                                    Text="Guardar" Width="100px" /></td>
                            <td style="width: 100px">
                                <asp:Button ID="Button3" runat="server" CssClass="button2" OnClick="Button3_Click"
                                    Text="Retornar" Width="100px" /></td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
        <span class="footerText">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GPConnectionString2 %>" SelectCommand="SELECT [ID], [NOMBRES], [APELLIDOS], [CATEGORIA], [LOS], [SUBLOS] FROM [TB_PERSONAL]">
            </asp:SqlDataSource>
        </span>
    </div>
</fieldset>
